let http = require('http')
let server = http.createServer(function (request, response) {
  console.log(request.method);
  console.log(request.url);
  response.writeHead(200, {
    'Content-Type': 'text/html;charset=UTF-8',
    'SS': '234'
  })
  let str = `
    <h1>helloworld你好世界</h1>
    <p>你好世界</p>
  `
  response.write(str)
  response.end()
})
server.listen(8080, function () {
  console.log('服务器已启用，监听端口号为8080');
})